class AIAssistant:
    """AI助手父类 - 包含所有助手共有的基本属性"""

    def __init__(self, assistant_id, name, assistant_type, version, online, score):
        self.id = assistant_id
        self.name = name
        self.type = assistant_type
        self.version = version
        self.online = online
        self.score = score

    def __str__(self):
        status = "🟢在线" if self.online else "🔴离线"
        return f"ID: {self.id}, 名称: {self.name}, 类型: {self.type}, 版本: {self.version}, 状态: {status}, 能力评分: {self.score} [{self.type}]"

    def get_status_text(self):
        return "在线" if self.online else "离线"